<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import { config } from '@/config/config'
export default {
  name: 'App',
  created() {
    let res = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
    if(res) {
      window.location.href = config.h5_src;
    }
  },
  mounted() {
  }
}
</script>

<style>
/*字体灰 #999999 */
/*字体红 #FF4400*/
/*背景 #1c1f21 */
#app {
  font: 14px/1.5 "PingFangSC-Light", "PingFang SC", "微软雅黑", "Microsoft YaHei", Helvetica, "Helvetica Neue", Tahoma, Arial, sans-serif;
}
</style>
